package com.zys.el.user.dao;

import com.zys.el.core.dao.ICrudDao;
import com.zys.el.user.po.Tools;

import java.util.List;

public interface ToolsDao extends ICrudDao<Tools> {


    /**
     * 查询当前用户被授权工具
     * @param uid
     * @return
     */
    public List<Tools> selectLookTools(Long uid);

    /**
     * 插入中间表
     * @param toolsId
     * @param userId
     * @return
     */
    public boolean insertToolsAndUser(Long toolsId, Long userId);
}
